#include <stdio.h>

int main() {
    int a = 3, *p = NULL;
    printf("a的地址：%p\n", &a);
    printf("a的值：%d\n", a);

    p = &a;  //让指针变量p指向a
    printf("\np的地址：%p\n", &p);
    printf("p的值：%p\n", p);
    printf("*p的值:%d\n", *p);

    *p = 10;   //等价于a=10;
    printf("\na=%d, *p=%d\n", a, *p);


}